package com.gxuwz.service;

import com.gxuwz.entity.Department;
import com.gxuwz.entity.vo.PageVo;
import com.gxuwz.result.PageInfo;

import java.util.List;

/**
 * @Description:二级学院相关操作的服务接口
 */

public interface DepartmentService {
    
    /**
     * @Description:获取二级学院信息列表
     * @Param:  [com.gxuwz.entity.Department, com.gxuwz.result.PageInfo]
     * @Return: com.gxuwz.entity.vo.PageVo
     */
    
    public PageVo getDepartmentList(Department department, PageInfo pageInfo);

    /**
     * @Description:通过二级学院编号得到一条二级学院记录信息
     * @Param:  [java.lang.String]
     * @Return: com.gxuwz.entity.Department
     */
    
    public Department getDepartmentOne(String depId);

    /**
     * @Description:添加一条二级学院记录信息
     * @Param:  [com.gxuwz.entity.Department]
     * @Return: boolean
     */
    
    public boolean addDepartmentInfo(Department department);

    /**
     * @Description:修改一条二级学院记录信息
     * @Param:  [com.gxuwz.entity.Department, java.lang.String]
     * @Return: boolean
     */
    
    public boolean updateDepartmentInfo(Department department,String oldId);

    /**
     * @Description:通过二级学院编号，删除一条二级学院记录信息
     * @Param:  [java.lang.String]
     * @Return: boolean
     */
    
    public boolean deleteDepartmentOne(String depId);

    /**
     * @Description:获取所有的二级学院编号
     * @Param:  []
     * @Return: java.util.List<java.lang.String>
     */
    
    public List<String> selectDepartmentIds();

    /**
     * @Description:获取所有的二级学院编号和二级学院名称
     * @Param:  []
     * @Return: java.util.List<com.gxuwz.entity.Department>
     */
    
    public List<Department> getDepartmentIDAndName();
}
